<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑记账本</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/css/layui.css"  media="all">
    <link rel="stylesheet" href="__PUBLIC__/css/public.css"  media="all">
</head>
<body>
<div class="layui-conter">
    <div class="layui-col-md12">
        <div class="navigation">
            <span>行政></span><span>记账本></span><span>
             <if condition="$fs eq 2">
                编辑
                <elseif condition="$fs eq 3"/>
                新增
                <else/>
                查看
                </if>
            记账本</span>
        </div>
        <div class="white-conter selsectSet">
            <div class="title-blue"><b>
                <if condition="$fs eq 2">
                编辑
                <elseif condition="$fs eq 3"/>
                新增
                <else/>
                查看
                </if>
                记账本</b></div>
            <div style="margin-top: 20px">
                <form class="layui-form" action="__CONTROLLER__/CashbookSave" method="post">
                    <input type="hidden" value="{$map.id}" name="id">
                    <div class="layui-col-md6">
                        <div class="layui-col-md10">
                            <div class="layui-form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">类型</label>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="type">
                                        <foreach name="status" item="sl" key="kl">
                                            <option value="{$kl}" <if condition="$map.type eq $kl">selected</if> >{$sl}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="form-item">
                                <div class="label-div">
                                    <label class="form-label">日期</label>
                                </div>
                                <div class="input-block">
                                    <input type="text" name="date" id="date" lay-verify="date" placeholder="请选择" value="{$map.date}" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">账目</label>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="sid">
                                        <foreach name="zmdata" item="szz" key="kzz">
                                            <option value="{$kzz}" <if condition="$map.sid eq $kzz">selected</if> >{$szz}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">金额</label>
                                </div>
                                <div class="input-block">
                                    <input type="text" name="money" value="{$map.money}" autocomplete="off" placeholder="请输入..." class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">账户</label>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="cid">
                                        <foreach name="zjdata" item="sa" key="ka">
                                            <option value="{$ka}" <if condition="$map.cid eq $ka">selected</if> >{$sa}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">校区</label>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="xid">
                                        <foreach name="xx" item="sx" key="kx">
                                            <option value="{$kx}" <if condition="$map.xid eq $kx">selected</if> >{$sx}</option>
                                        </foreach>
                                    </select>
                                </div>
                            </div>
                            <div class="form-item">
                                <div class="label-div" style="padding-top: 15px">
                                    <label class="form-label">备注</label>
                                </div>
                                <div class="input-block">
                                    <input type="text" name="mark" value="{$map.mark}" autocomplete="off" placeholder="请输入..." class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md12" style="margin-top: 50px;">
                        <!--<div class="button-block">-->
                            <if condition="$fs neq 1">
                            <button class="layui-btn layui-btn-xs layui-btn-normal" lay-submit="" style="height: 30px;width: 60px;">提交</button>
                            </if>
                            <button  class="layui-btn layui-btn-xs btn-grey" style="height: 30px;width: 60px;">返回</button>
                        <!--</div>-->
                    </div>
                </form>
            </div>
        </div>

    </div>

</div>




<script src="__PUBLIC__/js/layui.all.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;
        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });
        laydate.render({
            elem: '#date2'
        });

    });
</script>
</body>
</html>